<?php
require_once "../config/app.config.php";
?>
/*
<?
$entityField = new EntityFieldBLL();
//vp($_POST);
$result = $entityField->Create(
				$_POST["entityID"], 
				$_POST["Type"], 
				$_POST["Name"], 
				$_POST["DbField"], 
				$_POST["FormLabel"], 
				$_POST["FormLocation"], 
				$_POST["GridHeader"], 
				$_POST["GridLocation"]);
vp($result);
?>

*/
<?
if($result["IsValid"]){
?>
{
    success: true,
    msg: "<?=$result["Message"]?>"
}
<?
}else{
	$errorMessage = "";
	foreach($result["Message"] as $message){
		$errorMessage .= "<br /> * ".$message; 
	}
?>
{
    success: false,
    msg: "<?=$errorMessage?>"
}
<?
}
?>